package com.pzr.chatroom.entity;

/**
 * <br>
 *
 * @author 蒋カイセキ    Japan-Tokyo  18-10-26 下午9:02<br>
 * ブログ http://www.shoukaiseki.top/<br>
 * E-メール jiang28555@Gmail.com<br>
 **/
public class UserHolder {

    private static ThreadLocal<User> userInThread = new ThreadLocal<User>();




    public static User get() {
        return userInThread.get();
    }


    public static void set(User user) {
        userInThread.set(user);
    }

    public static void remove(){
        userInThread.remove();
    }
}

